package com.xjscrm.server.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.GroupSendJob;
import com.xjscrm.common.entity.GroupSendJobMsg;
import com.xjscrm.server.dto.groupsendjob.GroupSendJobQuery;
import com.xjscrm.server.dto.groupsendjobmsg.GroupSendJobMsgQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface GroupSendJobMsgMapper {
    int deleteById(@Param("id") Long id);

    int insert(GroupSendJobMsg record);

    int insertSelective(GroupSendJobMsg record);

    GroupSendJobMsg selectById(@Param("id") Long id);

    int updateByIdSelective(GroupSendJobMsg record);

    int updateById(GroupSendJobMsg record);

    int updateStatusById(GroupSendJobMsg record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<GroupSendJobMsg> findByList(Page<GroupSendJobMsg> page, @Param("query") GroupSendJobMsgQuery query);

    /**
     * 分页查询
     * @param query
     * @param query
     * @return
     */
    Integer findCount(@Param("query") GroupSendJobMsgQuery query);


}